{#
Copyright (c) 2020 Andy Zhou
MIT License
#}
{% extends 'base.html' %}
{% from 'bootstrap/pagination.html' import render_pagination %}
{% from 'macros.html' import user_card with context %}
{% block title %}{{ _("All users") }} {% endblock %}
{% block page_content %}
<div class="row">
    <div class="col-lg-8">
        <ul class="list-group">
            {% for user in pagination.items %}
                {{ user_card(user) }}
            {% endfor %}
        </ul>
    </div>
    {% include 'main/_sidebar.html' %}
    {{ render_pagination(pagination) }}
    {% if current_app.testing %}
        <p style="display: none">{{ user_count }}</p>
    {% endif %}
</div>
{% endblock page_content %}